package com.lh.tams.domain;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.lh.tams.util.diy.CustomDateSerializer;

/**
 * TamsRecord entity. @author MyEclipse Persistence Tools
 */

public class TamsRecord implements java.io.Serializable {

	// Fields

	private long idBgt;
	private TamsPerson tamsPerson;
	private String caseNo;
	private int dealType;
	private Date startDate;
	private Date recordDate;
	private String recordContent;
	private String remark;
	private int isFinish;
	private TamsCase tamsCase;
	
	public TamsCase getTamsCase() {
		return tamsCase;
	}

	public void setTamsCase(TamsCase tamsCase) {
		this.tamsCase = tamsCase;
	}
	
	public int getIsFinish() {
		return isFinish;
	}

	public void setIsFinish(int isFinish) {
		this.isFinish = isFinish;
	}

	// Constructors

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	/** default constructor */
	public TamsRecord() {
	}

	/** minimal constructor */
	public TamsRecord(long idBgt) {
		this.idBgt = idBgt;
	}

	/** full constructor */
	public TamsRecord(long idBgt, TamsPerson tamsPerson, String caseNo,
			int dealType, Date recordDate,Date startDate,
			String recordContent, String remark) {
		this.idBgt = idBgt;
		this.tamsPerson = tamsPerson;
		this.caseNo = caseNo;
		this.dealType = dealType;
		this.recordDate = recordDate;
		this.startDate = startDate;
		this.recordContent = recordContent;
		this.remark = remark;
	}

	// Property accessors

	public long getIdBgt() {
		return this.idBgt;
	}

	public void setIdBgt(long idBgt) {
		this.idBgt = idBgt;
	}

	public TamsPerson getTamsPerson() {
		return this.tamsPerson;
	}

	public void setTamsPerson(TamsPerson tamsPerson) {
		this.tamsPerson = tamsPerson;
	}

	public String getCaseNo() {
		return this.caseNo;
	}

	public void setCaseNo(String caseNo) {
		this.caseNo = caseNo;
	}

	public int getDealType() {
		return this.dealType;
	}

	public void setDealType(int dealType) {
		this.dealType = dealType;
	}

	@JsonSerialize(using=CustomDateSerializer.class)
	public Date getRecordDate() {
		return this.recordDate;
	}

	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}

	public String getRecordContent() {
		return this.recordContent;
	}

	public void setRecordContent(String recordContent) {
		this.recordContent = recordContent;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}